package com.aoasaa;


import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class TextImageVoiceTabScreen extends TabActivity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.choosingtemplatetabs_screen);
  
        TabHost tabHost =getTabHost();
 
        // Tab for Photos
        TabSpec textnotesspec = tabHost.newTabSpec("Text Note"); 
        // setting Title and Icon for the Tab
        textnotesspec.setIndicator("Text Note", getResources().getDrawable(R.drawable.ic_launcher));
        Intent textIntent = new Intent(this, CreatingTextNotes.class);
        textnotesspec.setContent(textIntent);
 
        // Tab for Songs
        TabSpec imagespec = tabHost.newTabSpec("Image Note");
        imagespec.setIndicator("Image Note", getResources().getDrawable(R.drawable.ic_launcher));
        Intent imageIntent = new Intent(this, CreatingImageNotes.class);
        imagespec.setContent(imageIntent);
 
        // Tab for Videos
        TabSpec voicespec = tabHost.newTabSpec("Voice Note");
        voicespec.setIndicator("Voice Note", getResources().getDrawable(R.drawable.ic_launcher));
        Intent voiceIntent = new Intent(this, CreateVoiceNotes.class);
        voicespec.setContent(voiceIntent);   
 
        // Adding all TabSpec to TabHost
        tabHost.addTab(textnotesspec); // Adding photos tab
        tabHost.addTab(imagespec); // Adding songs tab
        tabHost.addTab(voicespec); // Adding videos tab
    }

}
